package com.truyen.model;

import java.util.Comparator;

public class TapThoModel {
	private int stt;
	private String name;
	private String link;
	private String content;
	
	public TapThoModel(int stt2, String name2, String link2) {
		this.stt=stt2;
		this.name=name2;
		this.link=link2;
	}
	
	// Comparator
    public static class CompId implements Comparator<TapThoModel> {
        @Override
        public int compare(TapThoModel arg0, TapThoModel arg1) {
            return arg0.stt - arg1.stt;
        }
    }
	
	/**
	 * @return the stt
	 */
	public int getStt() {
		return stt;
	}
	/**
	 * @param stt the stt to set
	 */
	public void setStt(int stt) {
		this.stt = stt;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the link
	 */
	public String getLink() {
		return link;
	}
	/**
	 * @param link the link to set
	 */
	public void setLink(String link) {
		this.link = link;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	
}
